package com.xinqi.modules.chat.chat.message.dto.rsp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 聊天消息置顶表-响应对象
 *
 * @author: yyzhen
 * @date: 2023/06/29
 */
@Data
@Schema(description = "聊天消息置顶表-响应对象")
public class ChatTopMessageResultDTO implements Serializable {
    /**
     * 主键id
     */
    @Schema(description = "主键id", example = "")
    private Long id;
    /**
     * 创建者
     */
    @Schema(description = "创建者", example = "")
    private Long createBy;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "")
    private LocalDateTime createTime;
    /**
     * 会话ID
     */
    @Schema(description = "会话ID", example = "")
    private String targetId;
    /**
     * 消息ID
     */
    @Schema(description = "消息ID", example = "")
    private String messageId;
    /**
     * 发送者用户Id
     */
    @Schema(description = "发送者用户Id", example = "")
    private Long userId;
    /**
     * 消息发送时间
     */
    @Schema(description = "消息发送时间")
    private Long sendTime;
    /**
     * 消息类型
     */
    @Schema(description = "消息类型", example = "")
    private String type;
    /**
     * 文本内容
     */
    @Schema(description = "文本内容", example = "")
    private String text;
    /**
     * 文件名
     */
    @Schema(description = "文件名", example = "")
    private String fileName;
    /**
     * 文件路径
     */
    @Schema(description = "文件路径", example = "")
    private String filePath;
    /**
     * 文件后缀
     */
    @Schema(description = "文件后缀", example = "")
    private String fileExt;
    /**
     * 文件大小
     */
    @Schema(description = "文件大小", example = "")
    private Integer size;
    /**
     * 语音、视频的时长
     */
    @Schema(description = "语音、视频的时长", example = "")
    private Integer duration;
    /**
     * 置顶时间
     */
    @Schema(description = "置顶时间", example = "")
    private LocalDateTime topTime;

}
